package Test;

public class jkjkj {
    public static void main(String[] args) {
        String str = "wangjiabao";
        String anotherString = "whello world";
        Object objStr = str;
        System.out.println();
        System.out.println( str.compareTo(anotherString));
        System.out.println( str.compareToIgnoreCase(anotherString) );
        System.out.println( str.compareTo(objStr.toString()));
    }
}
